<%--
  Created by IntelliJ IDEA.
  User: guobenqi
  Date: 2021/5/29
  Time: 18:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <!-- 1. 导入CSS的全局样式 -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="js/jquery-2.1.0.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <title>添加教师信息</title>
</head>
<body>
<div  class="container">
    <h1 style="text-align: center;color:orangered;">添加教师</h1>


    <form action="/addTeacher" method="post">

        <div class="form-group">
            <label for="name">姓名</label>
            <input type="text" class="form-control" id="name" aria-describedby="emailHelp" name="tName" placeholder="请输入教师姓名">
        </div>
        <div class="form-group">
            <label for="username">username</label>
            <input type="text" class="form-control" id="username" aria-describedby="emailHelp" name="username" placeholder="请输入username">
        </div>

        <div class="form-group">
            <label for="exa">班级</label>
            <select id="exa" class="form-control" name="cName">
                <option selected>----未分配----</option>
                <option value="软工5班">软工五班</option>
                <option value="软工6班">软工六班</option>
                <option value="软工7班">软工七班</option>
                <option value="软工8班">软工八班</option>
            </select>
        </div>

        <div class="form-group">
            <label for="sex">邮箱</label>
            <input id="sex" class="form-control" name="tEmail" type="email">
            </input>
        </div>
        <div class="form-group">
            <label for="age">电话</label>
            <input id="age" class="form-control" name="tPhone">
            </input>
        </div>
        <div class="form-group">
            <label for="examp">年龄</label>
            <input type="text" class="form-control" id="examp" aria-describedby="emailHelp" name="tAge" placeholder="亲输入年龄">
        </div>
        <div class="form-group">
            <label for="ex">毕业院校</label>
            <input type="text" class="form-control" id="ex" aria-describedby="emailHelp" name="tGraduate" placeholder="请输入毕业院校">
        </div>

        <button type="submit" class="btn btn-primary" style="width: 100%;">添加</button>
    </form>
</div>

</body>
<style type="text/css">
    body{
        width: 100%;
        height: 100%;
        background: url("${pageContext.request.contextPath}/image/bg2.jpg") no-repeat;
        background-size: cover;
    }
    .container{
        width: 600px;
        margin: 10px auto;
        background: #8a6d3b;
        color: #4cae4c;
        font-size: 15px;
        padding: 5px 50px;
        border-radius: 10px;
    }

</style>
</html>
